<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>

  </head>
  
  <body>
  <!-- 表单form
  method--指定的是请求方式
  action--接收数据的程序路径
  当前页面:http:localhost:8080/jw_Servlet/index.jsp
  目标页面http:localhost:8080/jw_Servlet/getDataRequestServlet
  
   -->
  <form action ="getDataRequestServlet" method="post">
   账号:<input type="text" name="username"><br>
   密码:<input type="password" name="pwd"><br>
    <input type="submit" name="按钮">
  </form>
 
  </body>
</html>
